A few porting etc. fixes for the new file monitor code.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Jun 2013 07:04:35 +0000 (00:04 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Jun 2013 07:04:35 +0000 (00:04 -0700)
commitbd5a01120233c19f1d8e813ab8588a515054525c
tree488e805d4492c28f044a528fd10cdfb2da0cc26c
parentb8e04a836ba90f9f17d68b99548bba978efac298
A few porting etc. fixes for the new file monitor code.

See the thread containing
<http://lists.gnu.org/archive/html/emacs-devel/2013-06/msg00109.html>.
* gfilenotify.c (dir_monitor_callback, Fgfile_add_watch)
(Fgfile_rm_watch): Don't assume EMACS_INT is the same width as a pointer.
(dir_monitor_callback, Fgfile_rm_watch):
Use assq_no_quit instead of Fassoc, for speed.
(dir_monitor_callback, Fgfile_rm_watch):
eassert that the monitor is a fixnum.
(dir_monitor_callback): No need for CDR_SAFE.
Simplify building of lisp with alternative tails.
(Fgfile_add_watch, Fgfile_rm_watch):
Do not assume glib functions set errno reliably on failure.
(Fgfile_add_watch): Check that the monitor survives the XIL trick,
and signal an error otherwise.
(Fgfile_rm_watch): Prefer CONSP to !NILP.
Use Fdelq instead of Fdelete, for speed.
src/ChangeLog
src/gfilenotify.c